package com.bdzl.biz.dao;

import com.bdzl.pub.entity.loan.OrderMailFileDO;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 贷款资料邮寄信息与文件关系表
 * @author yangyicai
 * @email yangyicai@foxmail.com
 * @date 2021-05-11 15:02:10
 */
public interface OrderMailFileDao {

	OrderMailFileDO get(Integer omfId);

	List<OrderMailFileDO> list(Map<String,Object> map);

	int count(Map<String,Object> map);

	int save(OrderMailFileDO orderMailFile);

	int update(OrderMailFileDO orderMailFile);

	int remove(Integer omf_id);

	int batchRemove(Integer[] omfIds);

	/**
	 * @Description: TODO 根据订单号和文件id查询是否邮寄
	 * @param omfOdr 订单号
	 * @param fileId 文件id
	 * @return: com.bdzl.pub.entity.loan.OrderMailFileDO
	 * @Author: Ming
	 * @Date: 2021/5/29 16:41
	 */
	OrderMailFileDO getByFileId(@Param("omfOdr") String omfOdr,@Param("fileId") Integer fileId);
}
